<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="Dao.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String id = request.getParameter("id");
Userdao dao = new Userdao();
int result = dao.user_delete(id);
if(result > 0){
	%>
	<script type="text/javascript">
	window.alert("删除成功");
	window.location.href="user_select.jsp";
	</script>
	<%
}else{
	%>
	<script type="text/javascript">
	window.alert("删除失败");
	window.location.href="user_select.jsp";
	</script>
	<%
}
%>
</body>
</html>